import request from '@/utils/request'
// 黑市上拥有 
export function getsendOrderDealyMsg() {
	return request({
		url: "/tMemberProp/getMyPropBalance",
		method: 'get'
	})
}

// 获取黑市列表
export function getBlackList(data) {
	return request({
		url: "/blackMarket/getBlackList",
		method: 'post',
		data: data, // 将 dto 对象作为参数传递给接口
	})
}
// 时之沙兑换时之匙
export function exchangeShi(data) {
	return request({
		url: "/appParkour/exchangeTimeSandsToTimeKey?amount=" + data.amount,
		method: 'get'
	})
}

// 创建黑市订单
export function createOrder(data) {
	// console.log(data);
	return request({
		// url: "/blackMarket​/createOrder/​" + data.blackId,
		url: "/blackMarket/createOrder/" + data.blackId + "/" + data.number,
		method: 'post'
	})
}

// 取消黑市订单
export function cancelOrder(data) {
	return request({
		url: "/blackMarket/cancel/" + data.id,
		method: 'post'
	})
}
// 订单详情
export function orderDetail(data) {
	return request({
		url: "/blackMarket/orderDetail/" + data.orderId,
		method: 'post'
	})
}
// 支付黑市订单
export function goPay(data) {
	return request({
		url: "/blackMarket/payment/" + data.orderNo,
		method: 'post'
	})
}

// 支付黑市订单
export function getMemberChopNeedDetail(data) {
	return request({
		url: "/blackMarket/getMemberChopNeedDetail",
		method: 'get'
	})
}

